package com.googlecode.continuity.core.client.rpc;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * UserRPCAsync is the asynchronous implementation interface of the {@link com.googlecode.continuity.core.client.rpc.UserRPC}.
 *
 * @author Peter Schmitt <aragos@aragos.de>
 * @see com.googlecode.continuity.core.client.rpc.GroupRPC
 */
public interface UserRPCAsync {
  /**
   * Retrieve the number of users currently known to the system.
   * @param async asynchronous callback
   */
  void getUserCount(AsyncCallback async);

  /**
   * Returns the current user.
   * @param async asynchronous callback
   */
  void getCurrentUser(AsyncCallback async);
}
